<?
	App::namespace('lib.core.mvc.controllers');
	
	global $HTTP_RAW_POST_DATA;

	$root = substr($_SERVER['SCRIPT_NAME'], 0, -9);
	$url = substr($_SERVER['REQUEST_URI'], strlen($root));
	$url = explode('?', $url);
	$parts = array();
    $dirs = App::scanDirs('lib/controllers/');
	
	App::set('root', $root);

	include 'config.php';
	include 'route.direct.php';
	include 'route.php';
?>